<script setup>
const props = defineProps({
  modelValue: Number,
  money: Number,
  car: String
})

const emit = defineEmits(['update:modelValue', 'update:money', 'update:car'])

const handleClick = () => {
  emit('update:modelValue', props.modelValue + 1)
  emit('update:money', props.money + 100)
  emit('update:car', '三菱')
}
</script>

<template>
    <div class="box">
      这里是子组件 {{ modelValue }}
      {{ money }} {{ car }}
      <button @click="handleClick">增加</button>
    </div>
</template>
  
<style lang="less">

</style>
  